<?php
 require_once("../config/index.php");
 require_once('../controllers/adFlag.php');
 require_once('../controllers/controller.php');
?>
  <!DOCTYPE html>
  <html lang="en">
  <head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="<?php echo SERVER_STATICS?>css/stone.min.css" rel="stylesheet">
    <link href="<?php echo SERVER_STATICS?>css/bootstrap.min.css" rel="stylesheet">
  </head>

  <body>
    <div class="">
          <table class="table table-hover table-bordered p0 m0">
            <thead>
              <tr>
                <th>课程</th>
                <th>操作</th>
              </tr>
            </thead>
            <tbody>
              <?php
                $res=$course->showAllCrouse();
                for ($i=0; $i<count($res) ; $i++) {
                  echo("<tr>"."<td>".$res[$i]."</td><td><a href='adCourseMore.php?name=".$res[$i]."'>查看详情</a></td></tr>");
                }
              ?>
            </tbody>
          </table>

    </div>

  </body>

  </html>